package com.ruoyi.lvlian.service;

import java.util.List;

import com.ruoyi.lvlian.domain.WarehouseRef;
import com.ruoyi.lvlian.dto.WarehouseRefDto;
import com.ruoyi.lvlian.vo.WarehouseRefVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * 销售物流关联采购物流Service接口
 *
 * @author liyuxi
 * @date 2024-12-26
 */
public interface IWarehouseRefService {
    /**
     * 查询销售物流关联采购物流
     *
     * @param id 销售物流关联采购物流主键
     * @return 销售物流关联采购物流
     */
    public WarehouseRef selectWarehouseRefById(String id);

    /**
     * 查询销售物流关联采购物流列表
     *
     * @param warehouseRef 销售物流关联采购物流
     * @return 销售物流关联采购物流集合
     */
    public List<WarehouseRefVo> selectWarehouseRefList(WarehouseRefDto warehouseRef);

    /**
     * 新增销售物流关联采购物流
     *
     * @param warehouseRef 销售物流关联采购物流
     * @return 结果
     */
    public int insertWarehouseRef(WarehouseRef warehouseRef);

    /**
     * 修改销售物流关联采购物流
     *
     * @param warehouseRef 销售物流关联采购物流
     * @return 结果
     */
    public int updateWarehouseRef(WarehouseRef warehouseRef);

    /**
     * 批量删除销售物流关联采购物流
     *
     * @param ids 需要删除的销售物流关联采购物流主键集合
     * @return 结果
     */
    public int deleteWarehouseRefByIds(String[] ids);

    /**
     * 删除销售物流关联采购物流信息
     *
     * @param id 销售物流关联采购物流主键
     * @return 结果
     */
    public int deleteWarehouseRefById(String id);

    List<WarehouseRef> importInfo(MultipartFile file,   String sheetName, int rowNum) throws Exception;

    int bachSave(List<WarehouseRef> dtoList);

    int syncImgs(String outNum, String sellerContractNum, String outDate, String inNum, String buyerContractNum, String inDate, String col);
}
